import service from "./service";

// 搜索
export function getSearch(keywords, limit, type, cookie) {
  return service({
    url: `/cloudsearch?keywords=${keywords}&limit=${limit}&type=${type}&cookie=${cookie}`,
    method: 'get'
  })
}

// 热搜列表(详细)
export function getSearchHotDetail() {
  return service({
    url: `/search/hot/detail`,
    method: 'get'
  })
}

// 搜索建议
export function getSearchSuggest(keywords) {
  return service({
    url: `search/suggest?keywords=${keywords}&type=mobile`,
    method: 'get'
  })
}